package com.zysc.processflow.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zysc.processflow.entity.Organization;
import com.zysc.processflow.entity.Person;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 人员表 服务类
 * </p>
 *
 * @author 正元智慧城市_
 * @since 2022-11-23
 */
public interface IPersonService extends IService<Person> {

    List<Person> getPersonListByOrgId(String orgid);

    List<Person> getPersonListByOrgIdAndRoleId(String orgid,String roleid);

    List<Person> GetPersonList(IPage<Person> page, String username, String orgid, String currentorgid, String currentorgtype, String orgname);

    Boolean saveOrUpdatePersonInfo(Person entity);

    Boolean deletePersonInfo(Person entity);

    //数据权限：根据一个orgid获取该显示的数据
    List<Organization> getAllOrgFlowedByorgId(String currentorgid,String currentorgtype);

    List<Person> getPersonListByOrgIdsAndRoleId(List<String> orgids, String roleid);
}
